package lambda;
import lambda.interF.SayName;
public class demo4 {
    public static void main(String[] args) {
        //lambda表达式
        SayName Jack=(name)-> System.out.println(name);
        //方法引用
        SayName Alice=System.out::println;
        Jack.say("Jack");
        Alice.say("Alice");
    }
}
